package exception;

public class PowerNoMeaningException extends Exception {
    private String message = "";

    public PowerNoMeaningException(int signalBase) {
        if (signalBase == 0)
            this.message = "when base is 0, exponent should be more than 0";
        else if (signalBase == -1)
            this.message = "when base less than zero, exponent should be integer";
    }

    @Override
    public String getMessage() {
        return message;
    }
}
